//
//  Person.m
//  getter与懒加载
//
//  Created by hyl on 16/5/1.
//  Copyright © 2016年 hyl. All rights reserved.
//

#import "Person.h"

@implementation Person
-(void)setAge:(int)age{
    _age=age;
}
-(int)age{
    return _age;
}
//重写getter方法，实现懒加载

-(NSArray *)shops{

    NSString *file=@"/Users/hyl/Desktop/IOS/code/AppleDreamWebo/iOS/getter与懒加载/getter与懒加载/file.plist";
    _shops=[NSArray arrayWithContentsOfFile:file];
    return _shops;
}
@end
